#pragma once

#include "uiwin.h"
#include "MzWnd.h"
#include "Helper.h"

#include "MzDDrawOverlay.h"


class MZFC_API COverLayZoomIn
{
public:
	COverLayZoomIn(UiWin* pEdit,int x,int y);
	
	~COverLayZoomIn(void);
	
	void DrawZoom(int xThumb, int yThumb);	
	
private:	
	void GetZoomPos(int xThumb, int yThumb);

	RECT GetEditRect();	

	ImagingHelper* m_pihZoomhi;
	
	HBITMAP m_hBitMapMask;	
	
	MzDDrawOverlay* m_pOverLayDraw;
	
	int m_nZoomWidth;
	
	int m_nZoomHeight;

	int m_nZoomPosX;
	
	int m_nZoomPosY;

	int m_nZoomWidthValid;
	
	int m_nZoomHeightValid;

	int m_nZoomPosXValid;
	
	int m_nZoomPosYValid;

	int m_nZoomPosXOffset;
	
	int m_nZoomPosYOffset;
	
	int  m_ntick;

	UiWin* m_pEdit;

	RECT m_rcOverlay;
};
